package week2;

import java.util.Scanner;

public class q3 {
    public static void main(String[] args){
        System.out.println("请输入Java课的成绩");
        Scanner sc =new Scanner(System.in);
        double javaScore= sc.nextDouble();
        System.out.println("请输入c语言的成绩");
        double cScore=sc.nextDouble();
        System.out.println("请输入数据库的成绩");
        double databaseScore=sc.nextDouble();
        System.out.println("Java和c语言的分数差为："+Math.abs(javaScore-cScore));
        System.out.println("三门课的平均值是："+(javaScore+cScore+databaseScore)/3);
        }

    }

